﻿<%@ Page Title="市场展销管理" Language="C#" MasterPageFile="~/Member/UserManage.master" AutoEventWireup="true" CodeFile="MarketSalesList.aspx.cs" Inherits="Member_MarketSales_MarketSalesList" %>
<%@ Register Src="../../Control/PageNo.ascx" TagName="PageNo" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" Runat="Server">
<script type="text/javascript">
        function SelectAll()
        {
            // 找到所有的 input 元素
            var ctllist = document.getElementsByTagName("input");
            var objcheckbox= document.getElementById("CheckBox2");     
            for( var i = 0; i< ctllist.length; i++)
            {
                if(ctllist[i].type == "checkbox" && ctllist[i].name.indexOf( "CheckBox1") >=0 )
                {   
                    if(objcheckbox.checked==true)     
                         ctllist[i].checked = true;
                    else
                         ctllist[i].checked = false;
                }
          
             }
         }
    </script>
    <div class="inkg mar_top">
    <form id="form1" action="">
           <strong class="inkgt">
                市场展销管理</strong>
            <div class="intip mar_top">
                <strong class="intipt">提&nbsp;示：</strong>·请慎重修改！
            </div>
            		<div class="inso mar_top">
            	<p>
                            <asp:TextBox ID="txtKeyword" runat="server" Height="17"></asp:TextBox>
                            <asp:DropDownList ID="dropExpoType" runat="server"></asp:DropDownList>
                            <asp:Button ID="btnSelect" OnClick="btnSelect_Click" runat="server" Text="立即查询" CssClass="i_button2"></asp:Button>
                            </p>
            		</div>
            <div class="intab mar_top" id="intab">
                <ul class="intabt">
                    <li id="menu1"  class="<%=verify=="1"?"intabt2":"intabt1" %>" onclick="javascript:window.location.href='MarketSalesList.aspx?Verify=1'">已发布上网</li><li
                        id="menu2"  class="<%=verify=="3"?"intabt2":"intabt1" %>" onclick="javascript:window.location.href='MarketSalesList.aspx?Verify=3'">审核未通过</li><li
                            id="menu3"  class="<%=verify=="2"?"intabt2":"intabt1" %>" onclick="javascript:window.location.href='MarketSalesList.aspx?Verify=2'">审核中</li><li
                                id="menu4"  class="<%=verify=="4"?"intabt2":"intabt1" %>" onclick="javascript:window.location.href='MarketSalesList.aspx?Verify=4'">过期信息</li></ul>
            <div class="intabc" id="intabc">
             <div class="con" style="display: block">
                    <table cellpadding="0" cellspacing="0" border="0" class="edtb">
                            <thead>
                                <tr>
                                    <td id="xh" align="center" width="40">
                                        <strong>选项</strong>
                                    </td>
                                    <td align="center">
                                        <strong>信息标题</strong>
                                    </td>
                                    <td align="center" width="100">
                                        <strong>所属类别</strong>
                                    </td>
                                    <td align="center" width="80">
                                        <strong>报名输</strong>
                                    </td>
                                    <td align="center" width="80">
                                        <strong>开始日期</strong>
                                    </td>
                                    <td align="center" width="80">
                                        <strong>结束日期</strong>
                                    </td>
                                    <td align="center"  width="80">
                                        <strong>修改</strong>
                                    </td>
                                </tr>
                            </thead>
                            <tbody>
            <asp:Repeater ID="grdExpo" runat="server" >
            <ItemTemplate>
                        <tr>
                            <td width="40" align="center">
                                <input runat="server" value='<%# DataBinder.Eval(Container.DataItem,"ID")%>' id="chk" name="chk"
                                    type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" />
                            </td>
                            <td align="center">
                            <%# DataBinder.Eval(Container.DataItem, "Title")%>
                            </td>
                            <td width="100" align="center">
                                <a style="text-decoration: none" href='MarketSalesList.aspx?TypeID=<%# DataBinder.Eval(Container.DataItem,"TypeID") %>'>
                                <%# DataBinder.Eval(Container.DataItem, "Type") %>
                            </a>
                            </td>
                            <td width="80" align="center">
                                <%# DataBinder.Eval(Container.DataItem, "rCount") %>
                            </td>
                            <td align="center" width="80">
                                <%# GetShortDate(DataBinder.Eval(Container.DataItem, "StartDate").ToString())%>
                            </td>
                            <td align="center" width="80">
                               <%# GetShortDate(DataBinder.Eval(Container.DataItem, "EndDate").ToString())%>
                            </td>
                            <td align="center" width="80">
                               <a href='MarketSalesEdit.aspx?id=<%# DataBinder.Eval(Container.DataItem,"ID") %>'>修改</a>
                            </td>
                        </tr>
                    </ItemTemplate>
            </asp:Repeater>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="7">
                                    <p class="zi1">
                                                     <input runat="server" class="checkbox" type="checkbox" id="chkall" name="chkall" onclick="CheckMinoAll();" />
                                        全选
                                        <asp:Button ID="btnDelete" runat="server" Font-Size="9pt" OnClick="btnDelete_Click"
                                            OnClientClick="return CheckSelect();return confirm('你确认要删除吗?');" Text="批量删除" CssClass="del"  />
                                    </p>
                                    <p class="zi2">
                                        <uc1:PageNo ID="PageNo1" runat="server" />
                                    </p>
                                </td>
                            </tr>
                        </tfoot>
                        </table>
                          <asp:Label ID="lblMessage" runat="server"></asp:Label>
                         <input type="hidden" id="CheckedIDS" name="CheckedIDS" value="0" runat="server" />
            </div>
            </div>
            </div>
    </form>
    </div>
</asp:Content>

